package org.example.conts;

import com.alipay.api.AlipayClient;
import com.alipay.api.DefaultAlipayClient;

/**
 * @author 李国树
 * @version 1.0
 * @Desc 支付常量
 * @date 2023/11/17 10:54
 */
public class AlipayConts {
    /**
     * 我们自己的私钥, todo 你需要修改为你自己的私钥
     */
    public static String MY_PRIVATE_KEY="MIIEvgIBADANBgkqhkiG9w0BAQEFAASCBKgwggSkAgEAAoIBAQDRNemQcByL0dtUlQu4G7cP3I3QfHPabSyJe7oElmeDVyAaEShv5KUi+RdSRPIBCykBrgKmScXOxSqq6cB/N87gWr3lOnnYUdyrCL5tfUswjir8X8zyqVZnOlnVVdi5PtAAC7SJWUvD6AFaE6daW7K1A79/5adwNCRgD1Q+jp3+6hGH1qWf9onTUbXmO0nBjEUDKnTc/Gm7+JnXeaNoHUV5GJRsV0ub2neXojhHEnGvivV0sIVkwr1DNDN3Y0E6Xfn06q3ib7bfS80K3IFm56eD4Dtce4K70/19y3GbFWGDFWdv14yfCYPRfysz1f+3IYzs3tegluMlttJFmqO6SOBNAgMBAAECggEAHQBpQWGZQ3Sy//WtazdEWEmNyzIFaWkq/GAPeGVVMirYw2RPg7thfQikx/3Qwn5Gj/oMWfruFezVLl47FiepYQaTPnytuWQXwAn1Q/5TdwauRNAO/DCnTqYTH/THl15yvR7iRwv+6ch2r4L79xWxH1DGsjcmz/IafMqDNizVECooV+IOXebHwPc4dF0wtcfZzDqfIn+KaapmKjA2wGxZOvAPOTuGdPXZAKXwXhXjM3SZcxQW93LDGNSRz5ytofE2Ew4A98lJ6bK/CZTFNXab/SRTbvCPTx8WTy0uRPRfl1JQfoDApWQzTsFPStctIzIIYfGt6W66vcvhC4+k5HcZzQKBgQDsxTm3XL6cH5Q2dTG8VwXh967kmFSnRCC53idEbmX6ITxiJKIT9v1V/cnOTjf3sxdL0rQYsZjOHFQbp8zuNCEjr8PxfCzffZOJTrNAhdUNz9o7hPON2WToydgpYwhGPSId1X9Z5hTb0FuNdje9M/S46hHqkk3RCfrCWZp3d65VZwKBgQDiM65sIuTP7L7lF6prmlsd69OcTATdAZzC9j1aBrtG963sThyHHxCHkHaw7KUge23N4Q/lAZBDMOqOqXK6a9phqSdpXSb7QMn30DrCEfeXxBOCPmHTBe1rmPESVpQQtwhXhzRZ4uOsWFyenChHH4gjRvZLu1atC8vf6/szYt44KwKBgHG1XjyTS+9KszFcIyCiYm7dNp8OEUmrTFQ3PoB8zHjN0WQI19XivlO36F0t728EEWIWtOtPD2Wc8T++3IpherDazq2Ax0Ql2N8ObsPEAkf51ILVHOq4xt+NYESwDN8+qM3PJLQV7VqLvAw6BBbXhuXvc99FmB2WP1lrEuXhElZtAoGBAODUA3KhwBFWO2rS+eVXl2cHBd4cxNyyBJDXVKWNeUkRVsI/5ST8YF6N3Rr/KyU86Sevoi+5PR07mndPvqPCHV3iVjTojJ1AiT4RrsVEPHaRQd67iFnJU3EVo87ZVPPEKLtuvD73P9oGPZC8n2AJ3DNMDfO58W2wAuS+1X/+rebfAoGBALiMGOEXPD503a8EAEHOL7/MCFMHeDl4GVcbLw0K5FNm0H8qtWRzGQwtQ63uTQn0PWAt0rlhpGmcuYNttwVXyohvYaGTZWDzY8Ahnb1b2QX1/5htFAI8fRvf3wtaKIlmloX+K8sXnxeDrBVZbQkY0eEkzYcbAaDcu7C549+vxhoL";
    /**
     * 支付宝提供给我们的公钥,todo 你需要修改为你自己的支付宝公钥
     */
    public static String ALIPAY_PUBLIC_KEY="MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAr3sNsR/JE+Aww+EDVd/ob+yCpq5unaFsMj1n+uwynlnAyEP4hj/BTsUP0DqylF4R4nNozDL+qEmty1nOgYNJHIZQ5DQP/WJIhrjBAStn0FFijJ0zZjUj285lucSPTfEDtqVDvEergTtR3Zhvhe3R6ESVF0G8rGaHSI8z7C2942FNA/fb5eCd73/qZfVTh3xWYBdccmrbg/eSFJBr9ebvnrpAeasQcUXpwsIikKKSL/3/WmfXTGFxTQ/0kNHIsngg0plQQIEQqX35tSOubR3b+VaJiU/RHy5rvrpilLeJYwzTSmjHSWCaBNiND+SBS49Y8xUA8qCOrI7mmlfmUdmkhQIDAQAB";
    /**
     * 支付宝沙箱环境网关
     */
    public static String ALIPAY_GATEWAY="https://openapi-sandbox.dl.alipaydev.com/gateway.do";

    /**
     * todo 你需要修改为你自己的appid
     */
    public static String APPID="2021000122675408";
    /**
     * todo 修改为你再沙箱环境配置的回调地址
     */
    public static String RETRUN_URL="http://localhost:8003/cloud-pay/pay/alipayCallback";
    /**
     * todo 修改为你再沙箱环境配置的回调地址
     */
    public static String NOTIFY_URL="http://5w64vr.natappfree.cc/cloud-pay/pay/alipayNotify";

    public static  String CHARSET="UTF-8";
    /**
     * 签名方式
     */
    public static String SIGN_TYPE="RSA2";

    /**
     * 支付宝接口调用客户端
     */
    public static AlipayClient ALIPAY_CLIENT = new DefaultAlipayClient(AlipayConts.ALIPAY_GATEWAY,AlipayConts.APPID,AlipayConts.MY_PRIVATE_KEY,"json",AlipayConts.CHARSET,AlipayConts.ALIPAY_PUBLIC_KEY,AlipayConts.SIGN_TYPE);

}

 
